package com.pkx.guide.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pkx.guide.system.entity.TSysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

public interface TSysRoleMapper extends BaseMapper<TSysRole> {


    /**
     * 获取最大范围的数据权限
     *
     * @param roles
     * @return
     */
    Integer getMaximumDataScope(Set<String> roles);
}
